/**
 * qyPoster - v3.4.0 - 2015-05-141
 *
 *
 * Copyright (c) 2015
 * Licensed MIT <>
 */

function test(a, b, c) {
	console.log(a, b, c);
	audioObj = a, pageContents = b;
	for (var d = 0; d < c.length; d++) {
		var e = c[d].num;
		$('<div class = "kiss_background page_effect lock"></div>').prependTo($("#page" + e)).attr("id", "kiss_background" + e).attr("style", "background-image: url(" + c[d].kissmi.bgImage.path + ");background-size:cover;width:100%; height: 100%;"), $('<img class = "kiss_zw"/>').appendTo($("#kiss_background" + e)).attr("id", "kiss_zw" + e).attr("src", c[d].kissmi.zwImage.path),renderPage(qyPoster, e, b), unkiss(e)
	}
}
function unkiss(id){
	kiss.init("kiss_background"+id, "kiss_zw"+id);
}

var pageContents, andioObj, hastouch = "ontouchstart" in window ? !0 : !1,
	tapstart = hastouch ? "touchstart" : "mousedown",
	tapmove = hastouch ? "touchmove" : "mousemove",
	tapend = hastouch ? "touchend" : "mouseup";
var kiss={
	init: function(o,i) {
		this.Cover = document.getElementById(o), 
		this.oLip = document.getElementById(i),
		this.isStop = !1,
		this.oStyle = ["left", "top", "opacity", i],
		this.oTips = ["璇蜂翰鍚绘墜鏈哄睆骞曞摝锛�", "璇峰啀娣辨儏涓€鐐逛翰鍚诲惂锛�", "浜插惢濂藉儚涓嶇粰鍔涘摝锛屽啀璇曡瘯锛�"],
		this.oFloor = Math.floor(Math.random() * this.oTips.length + 1) - 1,
		this.X = 0,
		this.Y = 0,
		this.N = 0,
		this.H = 0,
		this.Tx = 0,
		this.Ty = 0,
		this.max = 0
		var e = this;
		if (!e.Cover || !e.oLip) return !1;
		this.Cover.addEventListener(tapstart, function(t) {
			t.preventDefault(), e.toTouchStart(e, t)
		}, !1), this.Cover.addEventListener(tapmove, function(t) {
			t.preventDefault(), e.toTouchMove(e, t)
		}, !1), this.Cover.addEventListener(tapend, function(t) {
			t.preventDefault(), e.toTouchEnd(e, t)
		}, !1)
	},
	toTouchStart: function(e, t) {
		var n = e;
		n.isStop = !0,
		t.preventDefault(),
		n.oFloor = Math.floor(Math.random() * n.oTips.length + 1) - 1,
		n.Tx = n.oLip.offsetLeft,
		n.Ty = n.oLip.offsetTop,
		n.X = t.touches[0].pageX,
		n.Y = t.touches[0].pageY,
		n.oLip.style[n.oStyle[0]] = (t.touches[0].pageX-80) + "px",
		n.oLip.style[n.oStyle[1]] = (t.touches[0].pageY-80) + "px",
		showCheckMessage(n.oTips[n.oFloor]);
	},
	toTouchMove: function(e, t) {
		var n = e;
		t.preventDefault();
		if (!n.isStop) return !1;
		n.N = t.touches[0].pageX - n.X,
		n.H = t.touches[0].pageY - n.Y,
		n.oLip.style[n.oStyle[0]] = (t.touches[0].pageX-80) + "px",
		n.oLip.style[n.oStyle[1]] = (t.touches[0].pageY-80) + "px",
		n.max = t.touches.length
	},
	toTouchEnd: function(t, n) {
		var r = t;
		return n.preventDefault(), r.max <= 1 ? !1 : (r.oLip.style[r.oStyle[2]] = 1, setTimeout(function() {
			$(r.Cover).fadeOut('slow');},1500), r.max = 0, r.isStop = !1, !1)
	}
}